Skip to content

docs: bring the package doc, AGENTS.md and comments up to date for 1.0 - #154

Merged
tas50 merged 1 commit into
mainfrom
docs/1.0-drift
Nov 27, 2026
Merged

tas50 merged 1 commit into
mainfrom
docs/1.0-drift

Conversation

@tas50

@tas50 tas50 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Doc drift found by the second pre-1.0 review.

  • Retry and paging docs. Collect, WithMaxRetries and AGENTS.md described the pre-release rules. They now say:
    • paging advances by the rows requested
    • backoff is capped at 10s and jittered
    • 501/505 are not retried
    • a client timeout on a GET is retried; a transfer timeout is not
    • the caller's context is what ends retrying
  • Package doc. It now covers errors and sentinels, retries, Do and the examples. Its usage snippet, and the README's, now uses node; before, the code did not compile.
  • Exported docs no longer name unexported helpers or source files: metadataRbStatements, cookbookSymlinkTarget, sandboxes.go, do[T].
  • Sentinels. ErrNotFound/ErrConflict/ErrForbidden/ErrUnauthorized get doc comments. ErrMetadataVersionNotLiteral gets the cinc: prefix every other error has.
  • NewClient's ServerURL error now explains itself:
    • a /organizations/<org> path points at ParseServerURL
    • any other prefix is refused because the request signature must cover the path the server sees
  • AGENTS.md: a cinc-server-ng gap needs a reason; an issue URL is required only when it's a server bug, which matches integration/README.md.

Test plan

  • go test ./.... The ServerURL test checks both error forms; one test is renamed after Collect.
  • go doc . reads correctly
  • golangci-lint

- Collect, WithMaxRetries and AGENTS.md described the retry and paging
  rules from before this release: paging advances by the rows requested,
  backoff is capped and jittered, 501/505 are not retried, an http.Client
  timeout on a GET is, a transfer timeout is not, and the caller's
  context is what ends retrying.
- The package doc says how errors and retries work and points at Do and
  the examples; its usage snippet, like the README's, now uses node.
- Exported docs no longer name unexported helpers or source files
  (metadataRbStatements, cookbookSymlinkTarget, sandboxes.go, do[T]).
- ErrNotFound, ErrConflict, ErrForbidden and ErrUnauthorized have doc
  comments, and ErrMetadataVersionNotLiteral has the cinc: prefix every
  other error has.
- NewClient's error for a ServerURL with a path says why: a path
  /organizations/<org> points at ParseServerURL, any other prefix is
  refused because the signature must cover the path the server sees.
- AGENTS.md: a cinc-server-ng gap needs a reason, an issue URL only when
  it is a server bug, as integration/README.md already says.

Signed-off-by: Tim Smith <tsmith84@proton.me>
@tas50
tas50 merged commit 23c9d82 into main Nov 27, 2026
7 checks passed
@tas50
tas50 deleted the docs/1.0-drift branch November 27, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant